﻿using Microsoft.Extensions.DependencyInjection;
using TianShu.Data;
using TianShu.Json;
using TianShu.Modularity;
using TianShu.MultiTenancy;
using TianShu.Security;
using TianShu.Threading;
using TianShu.Timing;

namespace TianShu.Auditing
{
    [DependsOn(
        typeof(AbpDataModule),
        typeof(AbpJsonModule),
        typeof(AbpTimingModule),
        typeof(TianShuSecurityModule),
        typeof(AbpThreadingModule),
        typeof(AbpMultiTenancyModule)
        )]
    public class AbpAuditingModule : AbpModule
    {
        public override void PreConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.OnRegistred(AuditingInterceptorRegistrar.RegisterIfNeeded);
        }
    }
}
